package com.ruoyi.qbms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qbms.mapper.QbmsQuestionChoiceIssueMapper;
import com.ruoyi.qbms.domain.QbmsQuestionChoiceIssue;
import com.ruoyi.qbms.service.IQbmsQuestionChoiceIssueService;

/**
 * 题库选择题问题Service业务层处理
 * 
 * @author zouhuu
 * @date 2022-10-17
 */
@Service
public class QbmsQuestionChoiceIssueServiceImpl implements IQbmsQuestionChoiceIssueService 
{
    @Autowired
    private QbmsQuestionChoiceIssueMapper qbmsQuestionChoiceIssueMapper;

    /**
     * 查询题库选择题问题
     * 
     * @param id 题库选择题问题主键
     * @return 题库选择题问题
     */
    @Override
    public QbmsQuestionChoiceIssue selectQbmsQuestionChoiceIssueById(Long id)
    {
        return qbmsQuestionChoiceIssueMapper.selectQbmsQuestionChoiceIssueById(id);
    }

    /**
     * 查询题库选择题问题列表
     * 
     * @param qbmsQuestionChoiceIssue 题库选择题问题
     * @return 题库选择题问题
     */
    @Override
    public List<QbmsQuestionChoiceIssue> selectQbmsQuestionChoiceIssueList(QbmsQuestionChoiceIssue qbmsQuestionChoiceIssue)
    {
        return qbmsQuestionChoiceIssueMapper.selectQbmsQuestionChoiceIssueList(qbmsQuestionChoiceIssue);
    }

    /**
     * 新增题库选择题问题
     * 
     * @param qbmsQuestionChoiceIssue 题库选择题问题
     * @return 结果
     */
    @Override
    public int insertQbmsQuestionChoiceIssue(QbmsQuestionChoiceIssue qbmsQuestionChoiceIssue)
    {
        return qbmsQuestionChoiceIssueMapper.insertQbmsQuestionChoiceIssue(qbmsQuestionChoiceIssue);
    }

    /**
     * 修改题库选择题问题
     * 
     * @param qbmsQuestionChoiceIssue 题库选择题问题
     * @return 结果
     */
    @Override
    public int updateQbmsQuestionChoiceIssue(QbmsQuestionChoiceIssue qbmsQuestionChoiceIssue)
    {
        return qbmsQuestionChoiceIssueMapper.updateQbmsQuestionChoiceIssue(qbmsQuestionChoiceIssue);
    }

    /**
     * 批量删除题库选择题问题
     * 
     * @param ids 需要删除的题库选择题问题主键
     * @return 结果
     */
    @Override
    public int deleteQbmsQuestionChoiceIssueByIds(Long[] ids)
    {
        return qbmsQuestionChoiceIssueMapper.deleteQbmsQuestionChoiceIssueByIds(ids);
    }

    /**
     * 删除题库选择题问题信息
     * 
     * @param id 题库选择题问题主键
     * @return 结果
     */
    @Override
    public int deleteQbmsQuestionChoiceIssueById(Long id)
    {
        return qbmsQuestionChoiceIssueMapper.deleteQbmsQuestionChoiceIssueById(id);
    }
}
